#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "chatdialog.h"
#include "forgetdialog.h"
#include "logindialog.h"
#include "registerdialog.h"
QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private:
    Ui::MainWindow *ui;

private:
    LoginDialog *_login_dlg;
    RegisterDialog *_regist_dlg;
    ForgetDialog *_forget_dlg;
    ChatDialog *_chat_dlg;

public slots:
    void SwitchRegister();
    void SwitchLogin();
    void SwitchForget();
    void SwitchChat();
};
#endif // MAINWINDOW_H
